/**
 * Created by aaa on 2017/8/1.
 */
// exports.keys='security key';
// 添加 view 配置
// exports.view = {
//     defaultViewEngine: 'nunjucks',
//     mapping: {
//         '.tpl': 'nunjucks',
//     },
// };
module.exports = appInfo => {
    const config={
        view : {
            defaultViewEngine: 'nunjucks',
            mapping: {
                '.tpl': 'nunjucks',
            }
        },
        news : {
            pageSize: 5,
            serverUrl: 'https://hacker-news.firebaseio.com/v0',
        },
        //关闭 egg-security的csrf验证，默认是开启的  @link https://github.com/eggjs/egg-security
        security:{
            csrf: false,
        },
        mongoose:{
            url: 'mongodb://127.0.0.1:27017/egglearning',
            options: {}
        },
    };

    // config.keys=appInfo.name+"123";
    return config;
};


// 添加 news 的配置项
// exports.news = {
//     pageSize: 5,
//     serverUrl: 'https://hacker-news.firebaseio.com/v0',
// };

// exports.security = {
//     csrf: false
// };
// 表单